<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script src="./lib/echarts.min.js"></script>
	</head>
	<body>
		<div style="width: 600px; height: 400px"></div>

		<script type="text/javascript">
			//初始化Echarts实例对象
			let mCharts = echarts.init(document.querySelector('div'));
			//准备配置项
			let option = {
				//图标的 x 轴
				xAxis: {
					type: 'category', //类目轴
					data: ['小明', '小红', '小王'],
				},
				yAxis: {
					type: 'value', //数值轴
				},
				//系列列表
				series: [
					{
						name: '语文',
						type: 'bar', // bar line pie
						data: [70, 43, 98],
					},
				],
			};
			//将配置项给echarts实例对象
			mCharts.setOption(option);
		</script>
	</body>
</html>
